package com.ywy.search.mq;

import lombok.Data;

import java.io.Serializable;

/**
 * 文章消息通讯模板
 *
 * @author ywy
 * @date 2021/12/30 16:10
 */
@Data
public class MqPostMessage implements Serializable {
    public static final String CREATE_OR_UPDATE = "create_or_update";

    public static final String REMOVE = "remove";

    public static final int MAX_RETRY = 3;

    private Integer postId;

    private String type;

    public MqPostMessage() {

    }

    public MqPostMessage(Integer postId, String type) {
        this.postId = postId;
        this.type = type;
    }
}
